package com.fcscs.cservice.ws.client.commonservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.commonservice.GetStatesRequest;
import com.fcscs.cservice.ws.schema.commonservice.GetStatesResponse;

public class GetStatesClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetStatesClient.class);

	public GetStatesResponse getStates(GetStatesRequest req) {
		GetStatesResponse resp = (GetStatesResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getStateList());
		return resp;
	}
}
